package com.qianbei.common.image;

/**
 *
 * 图片加载实例工厂
 *
 * @author jiaowenzheng
 * Created by user on 16/5/26.
 */
public class ImageLoaderFactory {

    private static volatile ImageLoader mInstance;

    private ImageLoaderFactory(){
    }


    /**
     * 图片加载实例
     *
     * @return
     */
    public static ImageLoader getInstance(){

        if (mInstance == null){
            synchronized (ImageLoaderFactory.class){
                if (mInstance == null){
                    mInstance = new GlideImageLoader();
                }
            }
        }

        return mInstance;

    }



}
